import { VipCardActionsEnum } from '../../../_/vue/store/vip'
import axios from '../../../plugins/axios'
export default {
  [VipCardActionsEnum.LIST] ({ commit }, params) {
    return axios.get('/vip-card', { params })
  },
  [VipCardActionsEnum.STORE] ({ commit }, data) {
    return axios.post('/vip-card', data)
  },
  [VipCardActionsEnum.EDIT] ({ commit }, id) {
    return axios.get(`/vip-card/${id}`)
  },
  [VipCardActionsEnum.SAVE] ({ commit }, payload) {
    return axios.post(`/vip-card/${payload.id}`, payload.data)
  },
  [VipCardActionsEnum.DELETE] ({ commit }, ids) {
    return axios.delete('/vip-card', { data: ids })
  }
}
